package com.lik888.web1.controller;


import com.lik888.web1.entity.R;
import com.lik888.web1.service.IHlepTableService;
import lombok.RequiredArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2025-11-10
 */
@RestController
@RequestMapping("/help")
@RequiredArgsConstructor
public class HlepTableController {
    private final IHlepTableService hlepTableService;

    //查看帮助文档
    @PreAuthorize("hasAuthority('default')")
    @GetMapping("/payandsell")
    public R payandsell () {
        return R.ok(hlepTableService.PayAndSell());
    }

    //首页轮播图
    @PreAuthorize("hasAuthority('default')")
    @GetMapping("/carousel")
    public List<String> carousel () {

        return hlepTableService.Selectcarousel();

    }


}
